package org.pearl.app.feign;

import feign.*;

import java.util.Map;

/**
 * Created by TD on 2021/12/24
 */
public interface TestFeignClient {

    @RequestLine("GET /app1/test?name={name}")
    @Headers({"Accept:*/*", "Accept-Language:zh-cn"})
    String test(@Param("name") String name);

    @RequestLine("GET /app1/test")
    String testQueryMap(@HeaderMap Map<String, String> map);

    @RequestLine("POST /app1/post")
    @Body("{user}")
    String post(@Param("user") User user);

}
